package com.frogchou;

import java.io.File;
import java.io.IOException;

import org.apache.commons.lang.ArrayUtils;


public class test {

	public static void main(String[] args) {
		String ss="https://pic.yiipic.com/uploadfile/2015/102|0/20151|020092742265.jpg";
		if (ss.startsWith("https://"))
		{ss=ss.substring(8);
		System.out.println(ss);
		}
		if (ss.startsWith("http://"))
		{ss=ss.substring(7);
		System.out.println(ss);
		}
		String[] array=ss.split("/");
	
		System.out.println(ArrayUtils.toString(array));
		
		String ssss="";
		for (int i = 0; i < array.length-1; i++) {
			ssss+=array[i]+"/";
		}
		
		System.out.println("2222222222222"+ss.replace("|", ""));
		
		
		
		
		System.out.println(System.getProperty("user.dir"));
		
		
		
		
	}

}
